Arrow keys / Click to navigate

Module 1: Exploring Components of Generative AI Applications on AWS

Developing Generative AI Applications on AWS

3 Topics β€’ ~45 minutes

πŸ“‹ Module Agenda

Topic A: Generative AI Concepts

AI hierarchy, foundation models, pre-training, inference, context windows

Topic B: AWS Generative AI Stack

AI services, 3-layer stack, Amazon Bedrock, Amazon Nova

Topic C: Designing GenAI App Components

Core & optional components, architecture patterns, serverless example

🧠 GenAI: A Branch of Machine Learning

Artificial Intelligence Machine Learning Deep Learning Generative AI Creates new content: text, images, code, audio, video Foundation Models (FMs)
Key insight: GenAI models don't just classify or predict β€” they generate new content based on patterns learned from massive datasets.

πŸ—οΈ Foundation Models (FMs)

Analogy: A foundation model is like a well-educated generalist β€” they've read extensively and can handle many subjects, but can specialize further with targeted study (fine-tuning).

βš™οΈ Pre-training & Inference

Pre-training Pipeline Massive Data Text, images, code Algorithm Transformers Foundation Model Billions of parameters Inference (Runtime) Prompt User input FM Processing Token generation Response Generated output Training: weeks/months on GPU clusters | Inference: milliseconds–seconds per request
Key difference: Training builds the model's knowledge (expensive, one-time). Inference uses that knowledge to answer questions (fast, per-request).

πŸ“ Context & Context Window

ModelContext Window~Equivalent
Claude 3 Haiku200K tokens~150K words (a novel)
Amazon Nova Pro300K tokens~225K words
GPT-4o128K tokens~96K words
Analogy: The context window is like the size of your desk β€” it determines how many documents you can spread out and reference at the same time. A bigger desk (larger window) lets you consider more information simultaneously.

πŸ”„ Foundation Model Functionality

TypeInputOutputExamples
Understanding ModelsMultimodal (text, images, docs)Text onlySummarization, classification, Q&A, analysis
Creative ModelsMultimodal (text, images)Multimodal (text, images, audio, video)Image generation, code writing, music, video

🧠 Understanding

Claude, Nova Micro/Lite β€” Analyze, extract, classify, reason about content

🎨 Creative

Nova Canvas, Stable Diffusion, Nova Reel β€” Generate images, videos, music

πŸ’Ό GenAI Business Value

🀝

Customer Experience

Personalized interactions, intelligent chatbots, instant support, product recommendations

⚑

Employee Productivity

Code generation, document summarization, meeting notes, email drafting, data analysis

🎨

Creativity & Content

Marketing copy, product descriptions, visual assets, social media, training materials

IDC Forecast: GenAI spending projected to reach $143B by 2027. Organizations report 25-40% productivity gains in early adopter scenarios.

☁️ AWS AI Services

Pre-built AI capabilities β€” no ML expertise required

Lifecycle Change: Amazon Kendra is entering maintenance mode effective June 2026. New customers should use Amazon Bedrock Knowledge Bases for enterprise search and RAG use cases.

πŸ›οΈ AWS Generative AI Stack

Applications Layer Amazon Q | Amazon Quick (formerly Q Business) Ready-to-use GenAI applications Tools & Services Layer Amazon Bedrock | 250+ FMs | Agents | Knowledge Bases | Guardrails Build and customize GenAI applications Infrastructure Layer AWS Trainium | AWS Inferentia | Amazon SageMaker | EC2 (GPU) Train & deploy custom models at scale ← Easiest ← Most flexible ← Most control
Think of it as: Top layer = "use it", Middle layer = "build with it", Bottom layer = "build it yourself". Most developers work in the middle layer (Bedrock).

πŸš€ Amazon Bedrock β€” Key Benefits

πŸ”Œ API Access to 250+ FMs

Claude, Llama, Mistral, Amazon Nova, Stable Diffusion, Cohere, AI21 Labs β€” all via single API

πŸ”’ Security & Privacy

Data stays in your account, encrypted, not used for model training. VPC endpoints, IAM integration

πŸŽ›οΈ Customizable

Fine-tuning, continued pre-training, RAG with Knowledge Bases, Guardrails for content control

πŸ—οΈ No Infrastructure

Fully managed β€” no servers, GPUs, or ML pipelines to manage. Pay per use (tokens/images)

Developer benefit: Focus on your application logic. Bedrock handles the heavy lifting of hosting, scaling, and serving foundation models.

✨ What's New: Amazon Nova Family⚠️ NEW

Launched December 2024 – First-party Amazon FMs optimized for Bedrock

ModelModalityBest For
Nova MicroText β†’ TextFastest, lowest cost. Summarization, translation, classification
Nova LiteMultimodal β†’ TextReal-time image/video understanding, low latency
Nova ProMultimodal β†’ TextBest balance accuracy/speed/cost. RAG, agents, code
Nova PremierMultimodal β†’ TextComplex reasoning, long-context, hardest tasks
Nova CanvasText β†’ ImageImage generation, editing, backgrounds
Nova ReelText β†’ VideoShort video generation (6s clips)
Nova SonicSpeech ↔ SpeechVoice-to-voice, real-time conversation
Why it matters: Amazon Nova provides cost-effective alternatives across the capability spectrum β€” up to 75% cheaper than comparable third-party models for many use cases.

πŸ”— What's New: OpenAI on Bedrock⚠️ UPDATE

Announced 2025 β€” GPT models now accessible through Amazon Bedrock

GPT Models on Bedrock

Access OpenAI's GPT-4o and other models using the same Bedrock Converse API and SDKs

Redesigned Console

New Bedrock console experience β€” model playground, comparison tools, unified navigation

Compatible APIs

Converse API works across all providers β€” same code for Claude, Nova, GPT, Llama, Mistral

Enterprise Governance

Use GPT with your existing AWS security controls β€” IAM, CloudTrail, VPC endpoints, Guardrails

Developer takeaway: Write once, switch models freely. The Converse API abstracts provider differences β€” your code works with any FM on Bedrock.

🧩 Designing GenAI Application Components

Core Components

  • Frontend / User Interface
  • Application Logic (orchestration)
  • Foundation Model (via Bedrock)
  • Prompt Template / System Prompt

Optional Components

  • Enterprise Data Sources (S3, DBs)
  • Embeddings Model
  • Vector Database (OpenSearch, Pinecone)
  • Memory / Conversation History
  • Tools & External APIs
  • Guardrails & Safety Filters
Design principle: Start with core components (prompt β†’ FM β†’ response). Add optional components incrementally as your application needs grow (RAG for enterprise data, agents for actions).

πŸ—οΈ Example: Serverless GenAI Architecture

πŸ‘€ User API Gateway REST/WebSocket Lambda App Logic Amazon Bedrock Foundation Models Knowledge Bases RAG / Vector Search Amazon S3 Documents DynamoDB Session / Memory Guardrails Safety filters
Pattern: User β†’ API Gateway β†’ Lambda (orchestration) β†’ Bedrock (inference) + Knowledge Bases (RAG) + DynamoDB (memory). Fully serverless, scales to zero.

πŸ§ͺ Knowledge Check

Q1: Which layer of the AWS GenAI stack would a developer use to build a custom RAG application?

A) Applications Layer   B) Tools & Services Layer   C) Infrastructure Layer   D) Networking Layer

B) Tools & Services Layer β€” Amazon Bedrock, Knowledge Bases, Agents, and Guardrails live here. This is where developers build custom GenAI apps without managing infrastructure.

Q2: What is the primary difference between "Understanding" and "Creative" foundation models?

A) Input format   B) Output modality   C) Context window size   D) Cost

B) Output modality β€” Understanding models produce text-only output (analysis, classification). Creative models produce multimodal output (images, video, audio, code). Both can accept multimodal input.

πŸ“ Module 1 Summary

GenAI Concepts

AI β†’ ML β†’ DL β†’ GenAI hierarchy. FMs pre-trained on massive data. Context windows define working memory.

AWS GenAI Stack

3 layers: Apps, Tools/Services, Infrastructure. Bedrock = primary developer tool. 250+ FMs via single API.

App Components

Core: UI + Logic + FM. Optional: RAG, vector DB, memory, guardrails, tools. Start simple, add incrementally.

Key Takeaway

Amazon Bedrock abstracts FM hosting. Focus on application logic, prompts, and data β€” not infrastructure.

⚠️ Lifecycle Changes & Updates⚠️ UPDATE

Important service changes since the original course materials were published

Amazon Kendra β†’ Maintenance Mode (June 2026)
Amazon Kendra will enter maintenance mode. No new features or customers accepted. Existing customers can continue use but should plan migration to Amazon Bedrock Knowledge Bases for enterprise search and RAG.
Amazon Q Business β†’ Amazon Quick (Rebranding)
Amazon Q Business has been rebranded to Amazon Quick. Same functionality, new name. All existing Q Business deployments continue unchanged.

βœ… Recommended Actions

  • New RAG projects β†’ Use Amazon Bedrock Knowledge Bases (not Kendra)
  • New enterprise assistant projects β†’ Use Amazon Quick (formerly Q Business)
  • API integrations β†’ Use the Converse API for model-agnostic code
  • First-party models β†’ Evaluate Amazon Nova family for cost optimization
Click anywhere to close